home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- //Borland C++Builder
- //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
- //----------------------------------------------------------------------------
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
-
- #include "mainform.h"
- //---------------------------------------------------------------------------
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::RestrictSize(TMessage& Msg)
- {
- ((POINT far *)Msg.LParam)[3].x = 300;
- ((POINT far *)Msg.LParam)[3].y = 300;
- ((POINT far *)Msg.LParam)[4].x = 400;
- ((POINT far *)Msg.LParam)[4].y = 400;
- TForm::Dispatch(&Msg);
- }
- //---------------------------------------------------------------------
- void __fastcall TForm1::FormResize(TObject *Sender)
- {
- Label2->Caption = IntToStr(Width);
- Label4->Caption = IntToStr(Height);
- Memo1->Width = Form1->Width - 45;
- }
- //---------------------------------------------------------------------
-